package com.teach.javafxclient.controller.base;

import com.teach.javafxclient.Globalvar;
import com.teach.javafxclient.util.HttpUtil;
import javafx.scene.layout.VBox;
import kong.unirest.json.JSONArray;
import kong.unirest.json.JSONObject;

/**
 * @author Liang Jianlin
 * @date 2024-05-30 16:54
 */
public class HonorPageContainer {
    private VBox honorContainer;
    public void set(Long studentId){
        JSONArray res = HttpUtil.get(Globalvar.baseUrl+"/api/users/"+studentId+"/honors")
                .header("Accept", "application/json")
                .asJson()
                .getBody()
                .getArray();
        for (int i = 0; i < res.length(); i++) {
            JSONObject jo = res.getJSONObject(i);

        }
    }
}
